import request from '@/utils/request'

// 查询用品申请列表
export function listOfficialclaim(query) {
  return request({
    url: '/dailyoperations/officialclaim/list',
    method: 'get',
    params: query
  })
}

// 查询用品申请详细
export function getOfficialclaim(id) {
  return request({
    url: '/dailyoperations/officialclaim/' + id,
    method: 'get'
  })
}

// 新增用品申请
export function addOfficialclaim(data) {
  return request({
    url: '/dailyoperations/officialclaim',
    method: 'post',
    data: data
  })
}

// 修改用品申请
export function updateOfficialclaim(data) {
  return request({
    url: '/dailyoperations/officialclaim',
    method: 'put',
    data: data
  })
}

// 删除用品申请
export function delOfficialclaim(id) {
  return request({
    url: '/dailyoperations/officialclaim/' + id,
    method: 'delete'
  })
}
